home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Ham⁄GPS / SoftKiss.src.1.8 Folder / SoftKiss.src.1.8 / (unloved) / xsfk_config.h < prev    next >
Text File  |  1992-02-14  |  1KB  |  55 lines

  1. /*
  2.  * configuration constants
  3.  */
  4.  
  5. #pragma once
  6.  
  7. /*
  8.  * If the connection closes or can't be open because of an error
  9.  * retry this often
  10.  */
  11. #define sfk_RESTART_ON_ERROR_TIME (5*sfk_MINS)
  12.  
  13. /*
  14.  * consider all errors transient and don't tell the user
  15.  * till this much time has elapsed
  16.  */
  17. #define sfk_ERROR_ANNOUNCE_TIME (15*sfk_MINS)
  18.  
  19.  
  20. /*
  21.  * ask the server this often (default, server can set new minimum)
  22.  */
  23. #define sfk_POLL_TIME (5*sfk_MINS)
  24.  
  25. /*
  26.  * Retransmit unaswered polls this often at first
  27.  */
  28. #define sfk_RETRANS_MIN_TIME (1*sfk_MINS)
  29.  
  30. /*
  31.  * after this many fast RETRANS_MIN_TIME retransmits, go back to
  32.  * using POLL_TIME.  Also queue up a timeout error to happen
  33.  * in the usual ERROR_ANOUNCE_TIME seconds.
  34.  */
  35. #define sfk_NUM_FAST_RETRIES (4)
  36.  
  37. /*
  38.  * Sleep this long when user wacks the snooze button
  39.  */
  40. #define sfk_SNOOZE_TIME (45*sfk_MINS)
  41.  
  42. #ifndef sfk_DEBUG
  43. #define sfk_ABS_MIN_POLL (sfk_MINS*5)
  44. #define sfk_ABS_MAX_POLL (60*sfk_MINS)
  45. #else
  46. #define sfk_ABS_MIN_POLL (30*sfk_SECS)
  47. #define sfk_ABS_MAX_POLL (30*sfk_SECS)
  48. #endif
  49.  
  50. /*
  51.  * don't load sounds if it would leave less than this much space
  52.  * in system heap
  53.  */
  54. #define sfk_SYS_RESERVE (16000)
  55.